package com.fresh.bus.chat.domain;

public class QingYiGuo {
	
	public static final int F_LIWU = 1;
	public static final int F_BIAOBAI = 2;
	public static final int F_JIANTAO = 3;
	public static final int F_MIMI = 4;
	public static final int F_NUANXIN = 5;
	public static final int F_XIAOHUA = 6;
	
	public static final int M_LIWU = 101;
	public static final int M_MIMI = 102;
	public static final int M_BAOGAO = 103;
	public static final int M_AIHAO = 104;
	public static final int M_TALK = 105;
	public static final int M_TITIE = 106;

	public static int getFruit() {
		int result = -2;
		int v = (int) (Math.random() * 99);
		if(v < 80){ //女性结果
			v = (int) (Math.random() * 99);
			if(v<5){
				result = QingYiGuo.F_LIWU;
			}else if(v>=5 && v< 20){
				result = QingYiGuo.F_BIAOBAI;
			}else if(v>=20 && v< 35){
				result = QingYiGuo.F_JIANTAO;
			}else if(v>=35 && v< 45){
				result = QingYiGuo.F_MIMI;
			}else if(v>=45 && v< 75){
				result = QingYiGuo.F_NUANXIN;
			}else{
				result = QingYiGuo.F_XIAOHUA;
			}
		}else{
			v = (int) (Math.random() * 99);
			if(v<5){
				result = QingYiGuo.M_LIWU;
			}else if(v>=5 && v< 15){
				result = QingYiGuo.M_MIMI;
			}else if(v>=15 && v< 25){
				result = QingYiGuo.M_BAOGAO;
			}else if(v>=25 && v< 35){
				result = QingYiGuo.M_AIHAO;
			}else if(v>=35 && v< 65){
				result = QingYiGuo.M_TALK;
			}else{
				result = QingYiGuo.M_TITIE;
			}
		}
		return result;
	}	
}
